import java.util.Scanner;
//编写程序数一下 1到 100 的所有整数中出现多少个数字9
//打印 1 - 100 之间所有的素数
//输出 1000 - 2000 之间所有的闰年


public class Test {
    public static void main(String[] args) {
        //X 【打印对角线】
        Scanner scan = new Scanner(System.in);
        while (scan.hasNextInt()) {
            int n = scan.nextInt();
            int i = 0;
            for (i = 0; i < n; i++) {
                for (int j = 0; j < n; j++) {
                    if (j == i) {
                        System.out.print("*");
                    } else if (i + j + 1 == n) {
                        System.out.print("*");
                    } else {
                        System.out.print(" ");
                    }
                }
                System.out.println();
            }
        }
    }

    public static void main4(String[] args) {
        // 水仙花数
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        int i = 1;
        for (i = 1; i < n; i++) {
            int tmp = 0, count = 0; //每次循环都更新一遍数据
            tmp = i;
            while (tmp != 0) {
                count++;
                tmp /= 10;  //count记录位数
            }
            tmp = i;
            int sum = 0; //每次循环都更新一遍数据
            while (tmp != 0) {
                sum += Math.pow((tmp % 10), count);
                tmp /= 10;
            }
            if (sum == i) {
                System.out.println(i + "是水仙花数");
            }
        }
    }

    public static void main3(String[] args) {
        //最大公约数 辗转相除
        Scanner scanner = new Scanner(System.in);
        int num1 = scanner.nextInt();
        int num2 = scanner.nextInt();
        int temp = num1 % num2; //16  4   4
        while (temp != 0) {
            num1 = num2;
            num2 = temp;
            temp = num1 % num2;
        }
        System.out.println(num2 + "是最大公约数");
    }

    public static void main2(String[] args) {
        // 素数
        Scanner scanner = new Scanner(System.in);
        int num = scanner.nextInt();
        int i = 0;
        for (i = 2; i <= Math.sqrt(num); i++) {   //从2开始除 ，大的数用开方 小的数用除2
            if (num % i == 0) {
                //能除尽
                System.out.println(num + "不是素数");
                break;
            }
        }
        if (i > (int) Math.sqrt(num)) {
            //除不尽
            System.out.println(num + "是素数");
        }
    }

    public static void main1(String[] args) {
        // 乘法表
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        int i = 0, j = 0;
        for (i = 1; i <= n; i++) {
            for (j = 1; j <= i; j++) {
                System.out.print(j + "*" + i + "=" + (j + i) + " ");
            }
            System.out.println();
        }
    }
}
